<?php
	include_once("Database.inc");
	
class RepositoryExt {

	
	/*
	 * Unlock documents by range of date
	 */
	 public static function unlockDateRange($min, $max) {
	 	$query = $GLOBALS["DB"] -> 
	 		doQuery("UPDATE REPOSITORYEXT SET Rejected='1' ".
					"WHERE ROWCREATIONDATE BETWEEN '$min' AND '$max'");
	 }
	 
	 /*
	  * Unlock the documents by EUID
	  */
	  public static function unlockDoc($id) {
	  	$query = $GLOBALS["DB"] -> 
	 		doQuery("UPDATE REPOSITORYEXT SET Rejected='1' ".
					"WHERE EUID='$id'");
	  }
}	
	
	
?>